package zero.tech.games.pdk.process;

import com.alibaba.fastjson.JSONObject;

import zero.tech.core.ZeroContext;
import zero.tech.core.data.Resp;
import zero.tech.games.logic.common.Room;
import zero.tech.games.logic.process.ReqRoomProcess;
import zero.tech.games.pdk.data.consts.PDKCMD;
import zero.tech.games.pdk.service.api.IPdkService;
import zero.tech.wsnet.controller.LogicController;
import zero.tech.wsnet.data.IREQ;
@IREQ(code = PDKCMD.REQ_PDK_HANDCARDS)
public class ReqHandCards extends ReqRoomProcess{

	@Override
	public void process(Room room, LogicController controller, Resp param) {
		IPdkService pdkService=ZeroContext.getInstance(IPdkService.class);
		JSONObject obj = (JSONObject) param.getParam();
		int uid=obj.getIntValue("uid");
		pdkService.reqHandCards(room,controller,uid);
	}

}
